package xsis.music.dao.impl;

import java.io.IOException;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Service;

import xsis.music.dao.AuthDao;
import xsis.music.model.AuthModel;

@Service
public class AuthDaoImpl extends HibernateDaoSupport implements AuthDao{

	@Autowired
	public AuthDaoImpl(SessionFactory sessionFactory) {
		setSessionFactory(sessionFactory);
	}
	
	@Override
	public void insert(AuthModel auth) throws IOException {
		// TODO Auto-generated method stub
		getHibernateTemplate().save(auth);
	}
	
}
